
package MagnetoProject;

import java.awt.Dimension;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

class ManualInput extends JFrame {

    public ManualInput(){

        //Create the Components
       JButton enterButton = new JButton("Enter");
       JLabel inputLabel = new JLabel("Test Input: ");
       final JTextField inputTextField = new JTextField();
       inputTextField.setColumns(10);

       JPanel backgroundPanel = new JPanel();
       backgroundPanel.setLayout(new BoxLayout(backgroundPanel, BoxLayout.Y_AXIS));

       JPanel topPanel = new JPanel();
       topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.X_AXIS));
       topPanel.add(Box.createRigidArea(new Dimension(10,0)));
       topPanel.add(inputLabel);
       topPanel.add(Box.createRigidArea(new Dimension(4,0)));
       topPanel.add(inputTextField);
       topPanel.add(Box.createHorizontalGlue());
       topPanel.add(Box.createRigidArea(new Dimension(24,0)));

       JPanel bottomPanel = new JPanel();
       bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.X_AXIS));
       bottomPanel.add(Box.createHorizontalGlue());
       bottomPanel.add(Box.createRigidArea(new Dimension(1,0)));
       bottomPanel.add(enterButton);
       bottomPanel.add(Box.createHorizontalGlue());

       //Create the frame
       JFrame manualInputFrame = new JFrame("Manual Input Test");
       manualInputFrame.setMinimumSize(new Dimension(200,100));
       manualInputFrame.setResizable(false);
       manualInputFrame.setVisible(true);

      //add the components
       manualInputFrame.add(backgroundPanel);
       backgroundPanel.add(Box.createRigidArea(new Dimension(0,10)));
       backgroundPanel.add(topPanel);
       backgroundPanel.add(Box.createRigidArea(new Dimension(0,2)));
       backgroundPanel.add(bottomPanel);
       backgroundPanel.add(Box.createRigidArea(new Dimension(0,35)));
       backgroundPanel.add(Box.createVerticalGlue());

       //now we need to add in the action listeners
       
    enterButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
         



            }
        });

    }
    


   //  private void enterButtonActionPerformed(java.awt.event.ActionEvent evt) {




      //  System.out.println("Passing your input along...");

   //  }



 }

